<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>腾宝邀请您 - 点亮灯塔</title>
    <link rel="shortcut icon" href="./resource/img/favicon.ico" />
    <link rel="bookmark" href="./resource/img/favicon.ico" />
    <link rel="stylesheet" href="./resource/css/head.css?v=3">
    <script src="https://cdn.bootcss.com/jquery/1.8.3/jquery.min.js"></script>
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <script src="./lib/echarts4.6.0/echarts.min.js"></script>
    <script src="./resource/js/app.js?v=3"></script>
    <script src="./lib/layer.mobile-v2.0/layer_mobile/layer.js"></script>
    <script type="text/javascript">
        var countConfig = loadCount();
        console.log(countConfig);

        //设置源openid
        setOriginOpenid();

        var shareData = getShareData();
    </script>
    <script src="./resource/js/js_sdk.js?v=3"></script>
    <script src="./resource/js/relax.js"></script>
    <style type="text/css">
        body {
            margin: auto;
            color: #aaa;
            background-color: #000;
        }
        
        #main {
            height: 500px;
            padding-top: 56px;
            padding-bottom: 20px;
        }
        
        .tail {
            text-align: center;
            width: 100%;
            margin-top: -20px;
            z-index: 100;
            line-height: 20px;
        }
    </style>
    <script type="text/javascript">
        $(function() {
            $("#count1").html(countConfig.count1);
            $("#count2").html(countConfig.count2);

            // 加载核心数据
            loadRelax();
            
            var is_login = localStorage.getItem("is_login");
            if(is_login!="true"){
                // 1. 检测是否登陆,5s后登陆
                var code = getUrlParam("code");
                if(code==null){
                    setTimeout(() => {
                        wxLogin();
                    }, 5000);
                }else{
                    wxLogin2();
                }
            }else{
                // 2. 检测是否关注
                checkIsSubscribe();
                
            }

        });
        function myShare(){
            layer.open({
                content: '点击右上角<br/>分享给好友一起点亮...'
                ,btn: '我知道了'
            });
        }
    </script>
    
</head>

<body>
    <div>
        <div class="head1">
            <marquee>
                <span id="count1">1354</span>人一起为<span id="count2" class="sp">6090</span>名受困者祈福<img width="32" height="32" src="./resource/img/lazhu128.png">
            </marquee>
            </span>
        </div>
    </div>
    <div id="main">
        
    </div>
    <div class="tail">
        <div onclick="myShare()" class="myShare"><img width="26" height="26" src="./resource/img/lazhu128.png">邀请好友一起祈福</div>
    </div>
</body>

</html>